import { createApp } from 'vue'
import router from './route'
import store from './store'
import ElementPlus from 'element-plus'
import * as ElIcons from '@element-plus/icons'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import './assets/style/common.scss'
import './assets/style/element_self.scss'
import svgIconRegistered from '@/utils/svg-component'

import App from '@/App.vue'

import MD from './model/MD'
// 瀑布流布局
import { VueMasonryPlugin } from 'vue-masonry'
// VUE:UI
const app = createApp(App)
// svg Sprites图
svgIconRegistered(app)
for (const name in ElIcons) {
    app.component(name, (ElIcons as any)[name])
}
// UI组件库
app.use(ElementPlus, {
    locale: zhCn,
}).use(store).use(router).use(VueMasonryPlugin).mount('#app')
app.config.warnHandler = () => null;
MD.__init__();